<template>
	<div>
   成绩页面
	</div>
	</template>



<script  setup >

import {ref, reactive, onMounted, onUnmounted} from 'vue';
import {ElMessage,ElMessageBox,ElNotification} from "element-plus";
import  router  from "@/router";
import  {getStorage,delStorage} from"@/utils/localStorage.js"
import {logout} from"@/api/getData"
const activeIndex =  ref("/main");
const activeIndex2 = ref('1')
const userInfo=reactive({
  user:{},
  menus:[]
})
const handleSelect = (key , keyPath) => {
console.log(key, keyPath);
}
const getUserInfo=()=>{
let userData=JSON.parse(getStorage("userInfo"));
console.log(userData)
userInfo.user=userData.user;
userInfo.menus=userData.menus;
}


//  程序加载时的钩子函数
// onMounted(() => {
//   updateTime(); // 初始更新时间
//   const intervalId = setInterval(updateTime, 1000); // 每秒更新一次时间
//   onUnmounted(() => clearInterval(intervalId)); // 清除定时器
// });

onMounted(() => {
   getUserInfo()
});
</script>
<style>
  .el-header{
		 padding: 0px;
		 width: 100%; 
  }
  .el-menu{
	   flex: 1;
		
		width: 100%; /* 确保菜单占据整个可用宽度 */
  }
  .flex-grow {
	flex-grow:1;
  }
  
</style>

